const fs = require("fs");

const getFile = (path) => {

    return new Promise(function (resolve, reject) {
        fs.readFile(path, function (err, data) {
            if (err) {
                reject(err)
            }
            resolve(data.toString())

        })
    })
}
module.exports = { getFile }